﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XWord.Fundamental.Data.Repositories;
using XWord.Fundamental.Domain;
using Luna.NHibernate;
using NHibernate;
using NHibernate.Criterion;

namespace XWord.Fundamental.Data.Impl
{
    public class CategoryRepository : Repository<Category>,ICategoryRepository
    {
        public CategoryRepository()  
        {
        }

     

        public IList<Category> GetCategoryList(CategoryType cateType)
        {
            return Session.CreateCriteria<Category>().Add(Restrictions.Eq("CategoryType", cateType)).List<Category>();
        }

    }
}
